package org.andy.shop.controller;


import javax.annotation.Resource;

import org.andy.shop.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.alibaba.fastjson.JSONObject;

@Controller
@RequestMapping("/login")
public class LoginController {

	@Resource
	private UserService userService;
	
	@PostMapping("/valid")
	public String valid(ModelMap modelMap,
					@RequestParam String username,
					@RequestParam String password){
		return "index";
	}
	
}
